package daily;

import java.util.Timer;
import java.util.TimerTask;

public class TraditionalTimerTest {
	static int count=1;
	public static void main(String[] args) {
		
		new Timer().schedule(new TimerTask() {
			
			@Override
			public void run() {
				count=(count+1)%2;
				System.out.println(count+"   bombing");
				
			}
		}, 1000,1000+1000*count);
	
	}
}
